import CategoryApi from "@/api/CategoryApi"

const category = {
    namespaced: true,
    state:{
        categorys:[]
    },
    mutations:{
        
    },
    actions:{
        async init(state){
            let res = await CategoryApi.getAll();
            state.state.categorys = res.data;
        }
    }
}

export default category